package _2025_4_15;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class writedemo2 {
    public static void main(String[] args) throws IOException {
        try (OutputStream outputStream=new FileOutputStream("D:/temp/java114/abc.txt")){
            byte []arr=new byte[]{
                    (byte)'h',(byte) 'f',(byte) 'g'
            };
            outputStream.write(arr);
            outputStream.flush();
        }
    }
}
